<?php $this->load('header')?>

<div class="tab">
	<ul>
		<li><a href="?mod=comment" <?php if (empty($filter)) {echo 'class="on"';}?>>全部评论</a></li>
		<li><a href="?mod=comment&filter=unchk" <?php if ($filter=='unchk') {echo 'class="on"';}?>>待审核(<?=$uncknum?>)</a></li>
	</ul>
</div>

<div class="main">

	<form name="save" method="post" action="?mod=comment&ac=reply">
	<input type="hidden" name="dosubmit" value="yes" />
	<input type="hidden" name="postid" value="<?php echo $comment['postid']?>" />
	<input type="hidden" name="replyid" value="<?php echo $comment['id']?>" />
	<table class="sub panel" cellspacing="0">
		<tr>
			<th colspan="2" class="title">回复评论</th>
		</tr>
		<tr>
			<td width="100">作者：</td>
			<td><?php echo $comment['author']?></td>
		</tr>
		<tr>
			<td>内容：</td>
			<td>
			<?php echo $comment['content']?>
			</td>
		</tr>
		<tr>
			<td>回复：</td>
			<td>
			<textarea name="content" id="content" rows="5" cols="100%"><?php echo $content;?></textarea>
			</td>
		</tr>
		<tr>
			<td></td>
			<td>
			<input type="submit" value="提交评论" class="button" />
			<input type="button" value="取消返回" class="button" onclick="history.back()" />
			</td>
		</tr>
	</table>
	</form>

</div>

<script type="text/javascript">
$( function() {
	$('#list tr').each( function() {
		$(this).mouseover( function() {
			$(this).children().find('.admintools').show();
		});
		$(this).mouseout( function() {
			$(this).children().find('.admintools').hide();
		});
	});
});
</script>

<?php $this->load('footer')?>